﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Simple.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="Warehouse.Web.Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .infotable {
            position: relative;
            top: 120px;
            margin: 0 auto;
        }
        .infotable .warning {
            line-height: 26px;
        }
        .infotable input[type="text"], .infotable input[type="password"] {
            width: 140px;
            padding: 0 5px;
        }
        .sitewrapper .sitebody {
            margin-left: 75px;
        }
    </style>

    <script type="text/javascript">
        $(function() {
            $('#<%= this.txtUserName.ClientID %>').focus();
        });
    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder_Content" runat="server">
    <table class="infotable">
        <tr>
            <td>
                <label>
                    用户名
                </label>
            </td>
            <td>
                <asp:TextBox ID="txtUserName" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="txtUserNameRequiredFieldValidator" runat="server"
                    ControlToValidate="txtUserName" ErrorMessage="RequiredFieldValidator">请输入用户名</asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td>
                <label>
                    密码
                </label>
            </td>
            <td>
                <asp:TextBox ID="txtPassword" TextMode="Password" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:RequiredFieldValidator ID="txtPasswordRequiredFieldValidator" runat="server"
                    ControlToValidate="txtPassword" ErrorMessage="请输入密码"></asp:RequiredFieldValidator>
            </td>
        </tr>
        <tr>
            <td colspan="2" class="buttons">
                <asp:Button ID="btnLogin" runat="server" CssClass="ui-button" Text="登录" OnClick="btnLogin_OnClick" />
                <p class="warning">
                    <asp:Literal ID="ltMessage" runat="server"></asp:Literal>
                </p>
            </td>
            <td>
            </td>
        </tr>
    </table>
</asp:Content>
